home *** CD-ROM | disk | FTP | other *** search
/ Aminet 20 / Aminet 20 (1997)(GTI - Schatztruhe)[!][Aug 1997].iso / Aminet / comm / www / HTP.lha / HTP / source / msg.h < prev    next >
C/C++ Source or Header  |  1997-06-21  |  958b  |  49 lines

  1. /*
  2. //
  3. // msg.h
  4. //
  5. // Copyright (c) 1995-96 Jim Nelson.  Permission to distribute
  6. // granted by the author.  No warranties are made on the fitness of this
  7. // source code.
  8. // Amiga version - 1997 - Geert Bevin
  9. //
  10. */
  11.  
  12. #ifndef MSG_H
  13. #define MSG_H
  14.  
  15. #include <exec/types.h>
  16.  
  17. /*
  18. // message severity levels
  19. */
  20. #define MSG_ERROR               (2)
  21. #define MSG_WARNING             (1)
  22. #define MSG_INFO                (0)
  23.  
  24. /*
  25. // set the printable message level ... if the message being written
  26. // does not meet the level, it is not printed
  27. */
  28. void SetMessageSeverityLevel(uint level);
  29.  
  30. /*
  31. // error/warning/info message display function
  32. */
  33. #ifndef DUMB_MSG_PROTOTYPE
  34. void HtpMsg(uint severityLevel, TEXTFILE *textFile, const char *format, ...);
  35. #endif
  36.  
  37. /*
  38. // debug message display, which also will dump to disk
  39. */
  40. void DebugInit(const char *debugMsgFilename);
  41. void DebugTerminate(void);
  42.  
  43. #ifndef DUMB_MSG_PROTOTYPE
  44. void DebugMsg(const char *format, ...);
  45. #endif
  46.  
  47. #endif
  48.  
  49.